﻿using System;
using System.Collections.Generic;

public class TabEditor
{
    public string name;
    List<Action> list = new List<Action>();
    public TabEditor AddAction(Action action)
    {
        list.Add(action);
        return this;
    }
    public TabEditor RemoveAction(Action action)
    {
        list.Remove(action);
        return this;
    }

    public void Update()
    {
        for(var i=0;i<list.Count;i++)
        {
            list[i].Invoke();
        }
    }
}

